Convert array of name value pairs to varargin cell array
nv | struct[] | with fields: +----name +----value |
args | cell | content of nv rearranged as: {nv(1).name, nv(1).value, nv(2).name, nv(2).value, ..} |
nv=json2struct( .... ) (specify json input string here) args=namevalue2varargin(nv); defopt= ... (specify defaults here) inputopt=varargin2struct(defopt,fieldnames(defopt),args{:}) Copyright 2006-2015 Modelit, www.modelit.nl